#import "GKCover.h"
#import "dfhgwhruebvhrheyaluminiumdisorder.h"
#import "dfhgwhruebvhrheyinsistspecializeViewController.h"
#import "dfhgwhruebvhrheybulletinalterViewController.h"
#import "dfhgwhruebvhrheylunarreceiptViewController.h"
@interface dfhgwhruebvhrheyinsistspecializeViewController ()
@property (weak, nonatomic) IBOutlet UIView *languageView;
@property (weak, nonatomic) IBOutlet UILabel *mobileText;
@property (weak, nonatomic) IBOutlet UILabel *versionText;
@end
@implementation dfhgwhruebvhrheyinsistspecializeViewController
- (void)viewDidLoad {
    [super viewDidLoad];
	[self loadUI];
}
- (void)loadUI {
	self.navigationItem.title = @"Settings";
	[self configBackIcon:@"dhgfywegwygeydwcurvereciprocal"];
	self.navigationStyle = dhgfywegwygeydwreciprocaltransport;
	self.mobileText.text = self.phone;
	self.languageView.layer.cornerRadius = 15;
	self.languageView.layer.masksToBounds = YES;
	self.versionText.text = [NSString stringWithFormat:@"V%@", [dfhgwhruebvhrheyoptionsaving appVersionString]];
}
- (IBAction)toggleLanguageAction:(UIButton *)sender {
	for (UIView *sub in sender.superview.subviews) {
		UIButton *btn = (UIButton *)sub;
		btn.selected = NO;
		btn.backgroundColor = [UIColor clearColor];
	}
	sender.selected = YES;
	sender.backgroundColor = primary_color.dhgfywegwygeydwlearneddesignate;
}
- (void)changePhoneNumberAction {
	dfhgwhruebvhrheybulletinalterViewController *changeVC = [[dfhgwhruebvhrheybulletinalterViewController alloc] init];
	changeVC.isCurrentMobile = YES;
	[self.navigationController pushViewController:changeVC animated:YES];
}
- (IBAction)tapAction:(UITapGestureRecognizer *)sender {
	switch (sender.view.tag) {
		case 100: {
			NSLog(@"版本号");
		}
			break;
		case 200: {
			dfhgwhruebvhrheyaluminiumdisorder *popView = [[dfhgwhruebvhrheyaluminiumdisorder alloc] initWithFrame:CGRectMake(37, 0, dhgfywegwygeydwdispositionvisualize-37*2, 287)];
			[GKCover coverFrom:[dfhgwhruebvhrheyoptionsaving keyWindow] contentView:popView style:GKCoverStyleTranslucent showStyle:GKCoverShowStyleCenter showAnimStyle:GKCoverShowAnimStyleCenter hideAnimStyle:GKCoverHideAnimStyleCenter notClick:YES];
			__weak typeof(self) weakSelf = self;
			[popView configure:@"Warm Reminder" andTips:@"You have bound this phone number Log in to PHPocketPro via mobile phone number and password!" withBtnsClick:^(UIButton * _Nonnull sender) {
				__strong typeof(weakSelf) strongSelf = weakSelf;
				[GKCover hideCover];
				if(sender.tag == 101) {
					[strongSelf changePhoneNumberAction];
				}
			}];
		}
			break;
		case 300: {
			dfhgwhruebvhrheylunarreceiptViewController *delete = (dfhgwhruebvhrheylunarreceiptViewController *)[UIStoryboard storyboard:@"Mine" withidentifier:@"delete_account"];
			delete.hidesBottomBarWhenPushed = YES;
			[self.navigationController pushViewController:delete animated:YES];
		}
			break;
		default:
			break;
	}
}
- (IBAction)logout {
	[dfhgwhruebvhrheyoptionsaving logout];
	[self.navigationController popToRootViewControllerAnimated:YES];
}
@end
